package cn.edu.lingnan.before.controller;

import cn.edu.lingnan.before.serivce.GoodsTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class GoodsController {
    @Autowired
    private GoodsTableService goodsTableService;
    // 通过商品id查找商品详情
    @GetMapping("/goodsDetail")
    public String goodsDetail(String goodId,Model model){
        return goodsTableService.goodsDetailById(goodId,model);
    }
//    public String getAdvertisementInfo(Model model){
//        return goodsTableService.findAdvertisementInfo(model);
//    }
}
